#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Author:Pxz
# @Time :2019/1/21 0021下午 3:17

from pymongo import MongoClient


def mongo_coll(host, port, db_name, coll_name):
    client = MongoClient(host, port)
    db = client[db_name]
    coll = db[coll_name]
    return coll


if __name__ == "__main__":
    pass
